package com.kuanter.kuanterauto.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * 数据缓存类
 * @author soup
 *
 */
public class MapResult {
	
	private static MapResult getMapResult=null;
	private Map<String, String> cache = new HashMap<String, String>();

	
	private MapResult(){
		
	}
	
	public static MapResult getMapResults(){
		if(getMapResult==null){
			getMapResult=new MapResult();
		}
		
		return getMapResult;
	}
	
	public void putValueForKey(String key,String value){
		cache.put(key, value);
	}
	
	public String getValueForKey(String key){
		return cache.get(key);
	}
	
	public void removeValueForKey(String key){
		cache.remove(key);
	}
	
	
	public void clearCache(){
		cache.clear();
	}
	

}
